<%@page import="java.sql.Date"%>
<%@page import="Model.*"%>
<%@page import="Controller.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>


<%
    controller_ChuyenTau ct = new controller_ChuyenTau();
    model_ChuyenTau chuyenTau = new model_ChuyenTau();
    
    chuyenTau.setMACHUYEN(request.getParameter("txtMACHUYEN"));
    chuyenTau.setMATUYEN(request.getParameter("cmbMATUYEN"));
    chuyenTau.setMADT(request.getParameter("cmbMADT"));
    chuyenTau.setTHOIGIANXP(Date.valueOf(request.getParameter("txtTHOIGIANXP")));
            
    ct.Them_ChuyenTau(chuyenTau);    
    response.sendRedirect("../frmChuyenTau.jsp");
%>

